package licode.unisop.platform.application.exception;

import licode.unisop.unilite.result.UniResultCode;

/**
 * 定义平台模块的错误码
 * 平台模块的错误码开头为611
 *
 * @author WR
 */
public class PlatErrorCode {
    public static UniResultCode PLATFORM_NOT_AUTH = new UniResultCode(611888, "平台未认证！");
    public static UniResultCode ILLEGAL_PLATFORM = new UniResultCode(611001, "非法的平台！");
    public static UniResultCode WRONG_PLATFORM_KEY = new UniResultCode(611002, "平台密钥不正确！");
    public static UniResultCode PLATFORM_EXISTED = new UniResultCode(611003, "平台已经存在！");
    public static UniResultCode PLATFORM_NAME_EXISTED = new UniResultCode(611004, "平台名称已存在！");
    public static UniResultCode PLATFORM_NOT_EXISTED = new UniResultCode(611005, "平台不存在！");
    public static UniResultCode PLATFORM_NO_ACTIVATED = new UniResultCode(611006, "平台未激活！");
    public static UniResultCode PLATFORM_FORBIDDEN = new UniResultCode(611007, "平台已被禁用！");
    public static UniResultCode PLATFORM_STATE_NOT_EDIT = new UniResultCode(611009, "平台状态不允许更改！");
    public static UniResultCode PLATFORM_ID_DONT_EMPTY = new UniResultCode(611010, "平台标识不能为空！");
    public static UniResultCode PLATFORM_WRONG_STATE = new UniResultCode(611011, "平台状态错误！");

    public static UniResultCode PLATFORM_REMOVE_ASSET_PARAM_ERROR = new UniResultCode(611201, "移除资源参数错误！");
    public static UniResultCode PLATFORM_QUERY_ASSET_PARAM_ERROR = new UniResultCode(611202, "查找资源参数错误！");
    public static UniResultCode PLATFORM_ASSET_CODE_EXIST = new UniResultCode(611203, "资源编码已存在！");
    public static UniResultCode PLATFORM_CANT_DEL_SYSTEM_ASSET = new UniResultCode(611204, "不能删除系统资源！");
    public static UniResultCode PLATFORM_CANT_EDIT_SYSTEM_ASSET = new UniResultCode(611205, "不能编辑系统资源！");
    public static UniResultCode PLATFORM_ASSET_WRONG_RULE = new UniResultCode(611206, "资源包含规则错误！");

    public static UniResultCode ROLE_CODE_EXIST = new UniResultCode(611100, "角色码已存在！");

    public static UniResultCode PERMIT_CODE_EXIST = new UniResultCode(611300, "权限码已存在！");
    public static UniResultCode PERMIT_CODE_NOT_EXIST = new UniResultCode(611301, "权限码不存在！");

    public static UniResultCode CLIENT_ID_EXIST = new UniResultCode(611400, "客户已存在！");

    // 非法的平台
    //public static final int ILLEGAL_PLATFORM = 611001;
    // 错误的平台密钥
    //public static final int WRONG_PLATFORM_KEY = 611002;
    // 平台已经存在
    //public static final int PLATFORM_EXISTED = 611003;

    // 平台名称已存在
    //public static final int PLATFORM_NAME_EXISTED = 611004;

    // 平台不存在
    // public static final int PLATFORM_NOT_EXISTED = 611005;

    // 平台未激活
    //public static final int PLATFORM_NO_ACTIVATED = 611006;

    // 平台已经被禁用
    //public static final int PLATFORM_FORBIDDEN = 611007;

    // 平台未认证
    //public static final int PLATFORM_NOT_AUTH = 611008;

    // 平台状态不允许更改
    //public static final int PLATFORM_STATE_NOT_EDIT = 611009;

    // 角色码已经存在
    //public static final int ROLE_CODE_EXIST = 611100;

    // 权限码已存在
    //public static final int PERMIT_CODE_EXIST = 611200;
    // 权限码不存在
    //public static final int PERMIT_CODE_NOT_EXIST = 611201;

    // 客户已存在
    //public static final int CLIENT_ID_EXIST = 611300;
    //public static final String CLIENT_ID_EXIST_MSG = "客户已存在";
}
